home *** CD-ROM | disk | FTP | other *** search
- // Persistence of Vision Raytracer
- // Sample file
- // By Tom Price
-
-
- #include "<PVray$Dir>.dat.colors"
- #include "<PVray$Dir>.dat.shapes"
- #include "<PVray$Dir>.dat.textures"
-
- view_point
- location <0.0 75.0 -100.0>
- direction <0.0 -0.5 1.0>
- up <0.0 1.0 0.0>
- right <1.333 0.0 0.0>
- end_view_point
-
- object
- quadric Plane_XZ translate <0.0 -10.0 0.0> end_quadric
- texture 0.05
- Dark_Wood
- scale <10.0 10.0 70.0>
- ambient 0.8
- diffuse 0.2
- reflection 0.4
- brilliance 3.0
- end_texture
- color Brown
- end_object
-
- object
- quadric Plane_XZ translate <0.0 200.0 0.0> end_quadric
- texture
- color blue 0.5 red 0.2 green 0.2
- ambient 0.5
- diffuse 0.5
- end_texture
- end_object
-
- #declare Coin = object
- intersection
- quadric Cylinder_Y scale <20.0 1.0 20.0> end_quadric
- quadric Plane_XZ translate <0.0 1.0 0.0> end_quadric
- quadric Plane_XZ translate <0.0 -1.0 0.0> inverse end_quadric
- end_intersection
-
- texture
- 0.05
- ambient 0.5
- diffuse 0.5
- color red 1.0 green 0.89 blue 0.55
- reflection 0.6
- brilliance 4.0
- specular 0.5
- metallic
- end_texture
- color red 1.0 green 0.89 blue 0.55
- end_object
-
- object Coin
- rotate <-15.0 0.0 -2.0>
- translate <-27.0 -2.0 -3.0>
- end_object
-
- object Coin
- rotate <-15.0 0.0 0.0>
- translate <-28.0 3.0 2.0>
- end_object
- object Coin
- rotate <-15.0 0.0 0.0>
- translate <-30.0 10.0 0.0>
- end_object
- object Coin
- rotate <-15.0 0.0 0.0>
- translate <-29.0 20.0 -2.0>
- end_object
- object Coin
- rotate <-15.0 0.0 -10.0>
- translate <-31.0 30.0 3.0>
- end_object
- object Coin
- rotate <-15.0 0.0 0.0>
- translate <-26.0 40.0 5.0>
- end_object
- object Coin
- rotate <-25.0 0.0 15.0>
- translate <-23.0 50.0 8.0>
- end_object
-
- object
- quadric QSphere scale <35.0 35.0 35.0> end_quadric
- translate <40.0 25.0 40.0>
- texture 0.05
- color White
- ambient 0.1
- diffuse 0.3
- reflection 1.0
- brilliance 5.0
- end_texture
- color White
- end_object
-
- object
- sphere <0.0 0.0 0.0> 20.0 end_sphere
-
- translate <60.0 100.0 -110.0>
- texture
- color White
- ambient 1.0
- diffuse 0.0
- end_texture
- light_source
- color White
- end_object
-
- object
- sphere <0.0 0.0 0.0> 20.0 end_sphere
-
- translate <-60.0 100.0 -110.0>
- texture
- color White
- ambient 1.0
- diffuse 0.0
- end_texture
- light_source
- color White
- end_object
-